package com.shekhar.paas.util;

import java.util.Calendar;
import java.util.Date;

public abstract class DateUtils {

    public static Date getDate(int hourOfDay, int minuteOfDay, int secondOfDay, int milliSecondOfDay) {
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(new Date());
        calendar.set(Calendar.HOUR_OF_DAY, hourOfDay);
        calendar.set(Calendar.MINUTE, minuteOfDay);
        calendar.set(Calendar.SECOND, secondOfDay);
        calendar.set(Calendar.MILLISECOND, milliSecondOfDay);
        return calendar.getTime();
    }
}
